package sy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.dao.BluetoothCardDaoI;
import sy.model.BluetoothCard;
import sy.service.BluetoothCardServiceI;
@Service("bluetoothCardService")
public class BluetoothCardServiceImpl implements BluetoothCardServiceI{
	@Autowired
	BluetoothCardDaoI bluetoothCardDao;

	@Override
	public void save(BluetoothCard bluetoothCard) {
		// TODO Auto-generated method stub
		bluetoothCardDao.save(bluetoothCard);
	}

	@Override
	public List<BluetoothCard> list(String accountId) {
		// TODO Auto-generated method stub
		return bluetoothCardDao.list(accountId);
	}

	@Override
	public void update(BluetoothCard bluetoothCard) {
		// TODO Auto-generated method stub
		bluetoothCardDao.update(bluetoothCard);
	}

	@Override
	public BluetoothCard getBluetoothCardByAddress(String address,String accountId) {
		// TODO Auto-generated method stub
		return bluetoothCardDao.getBluetoothCardByAddress(address,accountId);
	}

	@Override
	public void deleteByAddress(String address,String accountId) {
		// TODO Auto-generated method stub
		bluetoothCardDao.deleteByAddress(address,accountId);
	}
}
